<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pager.aspx.cs" Inherits="BaseSystem.DemoPage.Pager" %>
<%@ Import Namespace="Auto.Data.Setting" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title> 
    <script type="text/javascript" src="../_System/Script/Ajax.js"></script>

    <script type="text/javascript">
    function Pager(pageIndex)
    {
      //pageIndex:GridView PageInex,<%=divClientID %>: GridView PagerTemplate DivID,loginLog:DivID
       GetPager(pageIndex,'<%=divClientID %>',"loginLog");
    }
    function RemoveClickEvent(obj)
    {     
        document.getElementById(obj).onclick = null;
    }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">

    <div id="loginLog">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="mainView"
                AllowPaging="True" OnDataBound="GridView1_DataBound" PageSize="10">
                <Columns><asp:TemplateField>
                        <HeaderTemplate>
                                <%=Resources.Base.LoginTime %>
                            </span>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem, LoginLog.FIELD_RecID).ToString()%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <span onclick="OrderBy('LoginTime')">
                                <%=Resources.Base.LoginTime %>
                            </span>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem, LoginLog.FIELD_LoginTime).ToString()%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <span onclick="OrderBy('LogoutTime')">
                                <%=Resources.Base.LogoutTime%>
                            </span>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem,LoginLog.FIELD_LogoutTime).ToString() %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <span onclick="OrderBy('UserPCIP')">
                                <%=Resources.Base.UserPCIP%>
                            </span>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem,LoginLog.FIELD_UserPCIP).ToString() %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <span onclick="OrderBy('UserPCName')">
                                <%=Resources.Base.UserPCName %>
                            </span>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem,LoginLog.FIELD_UserPCName).ToString() %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <span onclick="OrderBy('LogoutType')">
                                <%=Resources.Base.LogoutType %>
                            </span>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem,LoginLog.FIELD_LogoutType).ToString() %>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <RowStyle CssClass="GridViewRowStyle" />
                <EditRowStyle CssClass="GridViewEditRowStyle" />
                <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
<%--                <PagerStyle CssClass="GridViewPagerStyle" />--%>
                <HeaderStyle CssClass="GridViewHeaderStyle" />
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                <PagerTemplate>
                    <div id="divPage" runat="Server">
                    </div>
                </PagerTemplate>
            </asp:GridView>
        </div>

    </form>
</body>
</html>
